package com.hclc.config.util;

import cn.hutool.core.lang.Snowflake;
import cn.hutool.core.util.IdUtil;

/**
 * @Author: hef
 * 随机字符串生成util
 * @Date: Create in 3:06 下午 2020/8/11
 */
public class UUIDUtil {

    private final static Snowflake snowflake = IdUtil.getSnowflake(1, 1);

    public static long getUUID() {
        return snowflake.nextId();
    }
}
